/* 相对定位 */

.container div {
    width: 100px;
    height: 100px;
    margin: 10px;
    background-color: rgba(216, 186, 250, 0.5);
    border: 1px solid #ff4ac9;
}

.relative {
    position: relative;
    top: 30px;
    left: 30px;
}


/* 绝对定位 */

.div-init {
    width: 100px;
    /* 绝对定位脱离标准流 */
    height: 100px;
    margin: 10px;
    background-color: rgba(216, 186, 250, 0.5);
    border: 1px solid #ff4ac9;
}

.absolute {
    position: absolute;
    top: 20px;
    left: 0;
    height: 50px;
    width: 50px;
    background-color: rgb(200, 215, 255);
    border: 1px solid #3a4dff;
}

.fixed {
    position: fixed;
    bottom: 30px;
    right: 30px;
}


/* 应用、偏移量设置 */

.slider {
    /* z-index: 10; */
    position: relative;
    width: 500px;
    height: 200px;
    background-color: rgba(216, 186, 250, 0.5);
}

.indicator {
    z-index: 9;
    position: absolute;
    bottom: 20px;
    top: 20px;
    left: 50%;
    margin-left: -50px;
    width: 100px;
    height: 20px;
    background-color: rgb(186, 196, 250);
}

.indicator1 {
    z-index: 1;
    position: absolute;
    bottom: 15px;
    left: 50%;
    margin-left: -50px;
    width: 100px;
    height: 20px;
    background-color: rgb(186, 250, 186);
}